package it.sandler.android;

import it.sandler.android.database.SandlerEntity;
import it.sandler.android.database.types.SandlerBool;
import it.sandler.android.database.types.SandlerFieldRelation;
import it.sandler.android.database.types.SandlerText;

public class Task extends SandlerEntity {

	private SandlerText todo;
	private SandlerBool done;
	private SandlerFieldRelation<TaskList> parentList;

	public Task(String todo) {
		setTodo(todo);
	}

	public Task() {
	}

	public boolean getDone() {
		return get(done);
	}

	public void setDone(boolean done) {
		set(this.done, done);
	}

	public String getTodo() {
		return get(todo);
	}

	public void setTodo(String todo) {
		set(this.todo, todo);
	}

	public TaskList getParentList() {
		return get(parentList);
	}

	public void setParentList(TaskList parentList) {
		set(this.parentList, parentList);
	}

}
